package com.github.pig.admin.model.zhgl.building;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * ���ݻ�����Ϣ
 * </p>
 *
 * @author xiaosa
 * @since 2018-06-04
 */
@TableName("community_building")
public class CommunityBuilding extends Model<CommunityBuilding> {

    private static final long serialVersionUID = 1L;
    public static String[] heads = {"楼宇名称","楼宇类型","负责人","建筑面积","楼层数","位置","竣工时间","开发商","开发商电话","产权","总户数","序号"};

    /**
     * id
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 社区ID
     */
    @TableField("community_id")
    @Excel(name = "所属小区" ,width = 20)
    private String communityId;
    /**
     * 小区名称
     */
    @TableField(exist = false)
    @Excel(name = "小区名称" ,width = 20)
    private String communityName;
    /**
     * 楼名称
     */
    @TableField("building_name")
    @Excel(name = "楼宇名称" ,width = 20)
    private String buildingName;
    /**
     * 楼类型
     */
    @TableField("building_type")
    @Excel(name = "楼宇类型" ,width = 20)
    private String buildingType;
    /**
     * 楼类型名称
     */
    @TableField(exist = false)
    @Excel(name = "楼宇类型名称" ,width = 20)
    private String buildingTypeName;
    /**
     * 负责人
     */
    @Excel(name = "负责人" ,width = 20)
    private String manager;
    /**
     * 面积
     */
    @Excel(name = "建筑面积" ,width = 20)
    private Double size;
    /**
     * 楼层数
     */
    @TableField("floor_number")
    @Excel(name = "楼层数" ,width = 20)
    private Integer floorNumber;
    /**
     * 楼位置
     */
    @Excel(name = "位置" ,width = 20)
    private String position;
    /**
     * 竣工时间
     */
    @TableField("complete_date")
    @Excel(name = "竣工时间" ,width = 20,importFormat="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone="GMT+8")
    private Date completeDate;
    /**
     * 开发商
     */
    @Excel(name = "开发商" ,width = 20)
    private String developer;
    /**
     * 开发商电话
     */
    @TableField("developer_phone")
    @Excel(name = "开发商电话" ,width = 20)
    private String developerPhone;
    /**
     * 保洁ID
     */
    @TableField("cleaning_user")
    private String cleaningUser;
    /**
     * 产权
     */
    @TableField("property_right")
    private Integer propertyRight;
    /**
     * 产权
     */
    @TableField(exist = false)
    @Excel(name = "产权" ,width = 20)
    private String propertyRightName;
    /**
     * 户数
     */
    @TableField("house_number")
    @Excel(name = "总户数" ,width = 20)
    private Integer houseNumber;

    /**
     * 是否存在单元
     */
    @TableField("exist_unit")
    @Excel(name = "是否存在单元" ,width = 20)
    private String  existUnit;

    /**
     * 顺序
     */
    @TableField("sort")
    @Excel(name = "序号" ,width = 20)
    private int  sort;

    /**
     * createDate
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * createUser
     */
    @TableField("create_user")
    private String createUser;
    /**
     * updateDate
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * updateUser
     */
    @TableField("update_user")
    private String updateUser;

    @TableField("del_flag")
    private String delFlag;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getBuildingType() {
        return buildingType;
    }

    public void setBuildingType(String buildingType) {
        this.buildingType = buildingType;
    }

    public String getBuildingTypeName() {
        return buildingTypeName;
    }

    public void setBuildingTypeName(String buildingTypeName) {
        this.buildingTypeName = buildingTypeName;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public Double getSize() {
        return size;
    }

    public void setSize(Double size) {
        this.size = size;
    }

    public Integer getFloorNumber() {
        return floorNumber;
    }

    public void setFloorNumber(Integer floorNumber) {
        this.floorNumber = floorNumber;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getCompleteDate() {
        return completeDate;
    }

    public void setCompleteDate(Date completeDate) {
        this.completeDate = completeDate;
    }

    public String getDeveloper() {
        return developer;
    }

    public void setDeveloper(String developer) {
        this.developer = developer;
    }

    public String getDeveloperPhone() {
        return developerPhone;
    }

    public void setDeveloperPhone(String developerPhone) {
        this.developerPhone = developerPhone;
    }

    public String getCleaningUser() {
        return cleaningUser;
    }

    public void setCleaningUser(String cleaningUser) {
        this.cleaningUser = cleaningUser;
    }

    public Integer getPropertyRight() {
        return propertyRight;
    }

    public void setPropertyRight(Integer propertyRight) {
        this.propertyRight = propertyRight;
    }

    public Integer getHouseNumber() {
        return houseNumber;
    }

    public void setHouseNumber(Integer houseNumber) {
        this.houseNumber = houseNumber;
    }


    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getPropertyRightName() {
        return propertyRightName;
    }

    public void setPropertyRightName(String propertyRightName) {
        this.propertyRightName = propertyRightName;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getExistUnit() {
        return existUnit;
    }

    public void setExistUnit(String existUnit) {
        this.existUnit = existUnit;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CommunityBuilding{" +
        ", id=" + id +
        ", communityId=" + communityId +
        ", buildingName=" + buildingName +
        ", buildingType=" + buildingType +
        ", manager=" + manager +
        ", size=" + size +
        ", floorNumber=" + floorNumber +
        ", position=" + position +
        ", completeDate=" + completeDate +
        ", developer=" + developer +
        ", developerPhone=" + developerPhone +
        ", cleaningUser=" + cleaningUser +
        ", propertyRight=" + propertyRight +
        ", houseNumber=" + houseNumber +
        ", createDate=" + createTime +
        ", createUser=" + createUser +
        ", updateDate=" + updateTime +
        ", updateUser=" + updateUser +
        "}";
    }
}
